package xz.service.user.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import xz.facade.user.model.Employee;
import xz.service.user.dao.EmployeeDao;
import xz.service.user.service.EmployeeService;
@Service
public class EmployeeServiceImpl implements EmployeeService {
	
	@Autowired
	private EmployeeDao employeeDao;
	@Override
	public void insertEmp(Employee emp) {
		employeeDao.insertEmp(emp);
	}

	@Override
	public void updateEmp(Employee emp) {
		employeeDao.updateEmp(emp);
	}

	@Override
	public String getEmp(String empId) {
		return employeeDao.getEmp(empId);
	}

	@Override
	public void deleteEmp(String empId) {
		employeeDao.deleteEmp(empId);
	}

	@Override
	public List getEmpByConditon(Map params) {
		return employeeDao.getEmpByConditon(params);
	}

	@Override
	public int getEmpTotal(Map params) {
		return employeeDao.getEmpTotal(params);
	}

}
